package com.easyedu.core.entity;

/**
 * errorCode 范围 4000 ~ 5000
 *
 * @author mengranliu
 * @date 2022/3/20
 */
public enum DbError implements EasyEduError {

     Err_INSERT_DB_ERROR(4000, "向数据库中插入数据出错"),
     Err_UPDATE_DB_ERROR(4001, "向数据库中更新数据出错"),
     Err_DELETE_DB_ERROR(4002, "向数据库中删除数据出错");

     private int    code;
     private String msg;

     DbError(int code, String msg) {
          this.code = code;
          this.msg = msg;
     }

     public int getCode() {
          return code;
     }

     public String getMsg() {
          return msg;
     }

}
